/**
 * 
 */
package com.dycn.posdashboard.data;

import java.io.Serializable;

/**
 * @author gongqiyi
 *
 */
public class JsonResponseData<T> implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5816595046149394198L;
	
	public static String SUCCESS="200";
	public static String LOGIC_ERROR="900";
	public static String FORBIDDEN="403";
	public static String NOT_FOUND="404";
	public static String EXCEPTION="500";
	public static String SESSION_TIMEOUT="910";//session过期

	private String resultCode=SUCCESS;

	private int pageId=1;
	private int totalPage=1;
	private int recordsPer=25;
	private int totalRecords=25;
	private Object others="";
	
	private String msg="";
	private T data;
    private boolean success=true;
    
	public Object getOthers() {
		return others;
	}
	public void setOthers(Object others) {
		this.others = others;
	}
	public int getPageId() {
		return pageId;
	}
	public void setPageId(int pageId) {
		this.pageId = pageId;
	}
	public int getTotalPage() {
		return totalPage;
	}
	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}
	public int getRecordsPer() {
		return recordsPer;
	}
	public void setRecordsPer(int recordsPer) {
		this.recordsPer = recordsPer;
	}
	public int getTotalRecords() {
		return totalRecords;
	}
	public void setTotalRecords(int totalRecords) {
		this.totalRecords = totalRecords;
	}

	public boolean isSuccess() {
		return success;
	}
	public void setSuccess(boolean success) {
		this.success = success;
	}




	public String getResultCode() {
		return resultCode;
	}
	public void setResultCode(String resultCode) {
		this.resultCode = resultCode;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	public T getData() {
		return data;
	}
	public void setData(T data) {
		this.data = data;
	}

}
